#include "include.h"
#include "class_motion_object.h"

#ifndef ___GRAV_SYSTEM_H__
#define ___GRAV_SYSTEM_H__

class grav_system {
public:
	///variables
	grav_system(std::vector<int> grav_objects_ID, std::vector<int> small_objects_ID, int date_id);

	///functions
	void calculate_tick(double tick_size);

private:
	///variables
	const static double grav_const;
	std::vector<std::vector<double>> distances; 
	std::vector<motion_object> small_objects, grav_objects; 

	///functions
	void calculate_distances(std::vector<motion_object> distance_to, std::vector<motion_object> distance_from); 
	void populate_system(std::vector<int> grav_objects_ID, std::vector<int> small_objects_ID, int date_id);

};
#endif
